JavaScript
A5.ButtonDropdownsetState Method
Syntax
A5.ButtonDropdown.setState(button,state)
Arguments
- buttonstringelement
The specific BUTTON element to set the state of.
Description
Set state of the dropdown button in order to have the dropdown button appear pressed when the dropdown is opened. This will be handled automatically if a dropdown object is passed in.
Example
// assume "newDocButton" is an A5.ButtonDropdown and bEle is a BUTTON element newDocButton.setState(bEle,true); // appears pressed newDocButton.setState(bEle,false); // appears normal